package com.yonyou.pmclouds.trialinfo.entity;

import com.yonyou.pmclouds.basecom.entity.SuperVO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NonNull;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@Table(name = "pmbd_trialinfo")
public class TrialInfoVO extends SuperVO{

    private static final long serialVersionUID = 2118385269097965993L;
    public static final String APPROVETIME = "approvetime";
    public static final String APPROVER = "approver";
    public static final String ENDTIME = "endtime";
    public static final String PKTENANT = "pkTenant";
    public static final String USERID = "userid";

    @Id
    private String pkTrialInfo;
    @NotNull(groups = InsertValid.class)
    private String tenantname;
    @NotNull(groups = InsertValid.class)
    private String province;
    @NotNull(groups = InsertValid.class)
    private String city;
    @NotNull(groups = InsertValid.class)
    private String county;
    private String detailaddress;
    @NotNull(groups = InsertValid.class)
    private String linkman;
    @NotNull(groups = InsertValid.class)
    private String mobilephone;
    @NotNull(groups = InsertValid.class)
    private String email;
    private String pkTenant;
    private String userid;
    private byte billstatus;
    @Column(name="applicationtime",updatable=false)
    private Date applicationtime;
    private String approver;
    private Date approvetime;
    private Date endtime;

    @Transient
    private String approvedate;
    @Transient
    private String applicationdate;
    @Transient
    private String enddate;

    // 试用用户数量
    @Transient
    private int accountQuantity;
    // 试用租期（与激活部分对应）
    @Transient
    private int lease;
    // 产品编码
    @Transient
    private String productId;

    public interface InsertValid {
    }

}
